package com.vanky.graph.test;

import com.fasterxml.jackson.core.JsonProcessingException;
import com.vanky.graph.pojo.Edge;
import com.vanky.graph.pojo.Vertex;
import com.vanky.graph.pojo.fqResult;
import com.vanky.graph.properties.HugeClientProperties;
import com.vanky.graph.service.EdgeService;
import com.vanky.graph.service.VertexService;
import com.vanky.graph.service.impl.EdgeServiceImpl;
import com.vanky.graph.service.impl.VertexServiceImpl;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

public class test01 {

    @Test
    public void EdgeTest() throws JsonProcessingException {
        EdgeService edgeService =new EdgeServiceImpl();
        List<Edge> allEdge = edgeService.getAllEdge();
        System.out.println(allEdge);
    }

    @Test
    public void VertexTest() throws JsonProcessingException {
        VertexService vertexService=new VertexServiceImpl();
        List<Vertex> allVertex=vertexService.getAllVertex();
        System.out.println(allVertex);
    }

    @Test
    public void getVertexById() throws JsonProcessingException{
        VertexService vertexService=new VertexServiceImpl();
        String id="4:0031714a-2edc-47d2-aeb4-77b2f01d6fe6_11576";
        List<Vertex> result=vertexService.getVertexById(id);
        System.out.println(result);
    }

    @Test
    public void getVertexByFuzzyQuery() throws JsonProcessingException{

    }
}
